if ($exists($findfile($scriptdir,zmodemautoidreadme1st.txt,1)) == $false) { echo -a $+ $colour(info) $+ *** File not found: $scriptdirZmodemautoidreadme1st.txt. This is the Readme file. If you need help using this script, chances are the help you want is in the readme. You should download this from: http://members.xoom.com/mircscripts/zmodemautoidreadme1.txt $+ . | return }
run $findfile($scriptdir,zmodemautoidreadme1st.txt,1)
echo -a $+ $colour(info) $+ *** Unloaded $script $+ . Check at: http://www.xcalibre.com for more updates, or go to http://zmodem.cjb.net to check out Zmodem's web page.
.unload -rs $script
}
; Main Dialog Events
on *:DIALOG:zmodem.autoid:init:0:{
if ($zautoid(state) == 1) { did -c $dname 1 | return }
}
on *:DIALOG:zmodem.autoid:sclick:1: {
zmodem.autoid.write state $did($dname,$did).state
if ($did($dname,$did).state == 0) { .disable #zmodem.autoid | zmodem.autoid.write state 0 }
if ($did($dname,$did).state == 1) { .enable #zmodem.autoid | zmodem.autoid.write state 1 }
}
on *:DIALOG:zmodem.autoid:sclick:2:{
if ($dialog(zmodem.autoid.setup) != zmodem.autoid.setup) { zmodem.autoid.setup.screen | goto end }
zmodem.autoid Sorry, Zmodem's DALnet Auto-Identifier Setup screen is already open
:end
}
;Setup Dialog
on *:DIALOG:zmodem.autoid.setup:init:0:{
zmodem.autoid.make.list
}
on *:DIALOG:zmodem.autoid.setup:sclick:6: {
zmodem.autoid.add
}
on *:DIALOG:zmodem.autoid.setup:sclick:11:{
if ($did($dname,$did,$did($dname,$did).sel) == $null) { return }
set %tmp.zmodem.autoid.show $zmodem.autoid.read($did($dname,11,$did($dname,$did).sel))
did -r $dname 4
did -r $dname 5
did -a $dname 4 $gettok(%tmp.zmodem.autoid.show,1,44)
did -a $dname 5 $gettok(%tmp.zmodem.autoid.show,2,44)
}
on *:DIALOG:zmodem.autoid.setup:sclick:12:{
zmodem.autoid.rem
}
;Groups
#Zmodem.Autoid on
on *:CONNECT:{
if ($right($server,8) == .dal.net) {
set %tmp.zmodem.autoid.check.exists $readini $scriptdirAUTOID.ini autoid $me
if (%tmp.zmodem.autoid.check.exists == $null) { return }
..$zmodem.autoid.on:.enable #Zmodem.Autoid | zmodem.autoid.write state 1
..$zmodem.autoid.off:.disable #Zmodem.Autoid | zmodem.autoid.write state 0
.-
.Options...:zmodem.autoid.start
.-
.View Readme:zmodem.autoid.readme
.-
.Unload:zmodem.autoid.unload
}
;CHECK VERSION EVENTS
on *:LOAD: {
if ($version < 5.61) {
echo -a $+ $colour(info) $+ *** Zmodem's DALnet Auto-Identifier v1.50 expects the use of mIRC 5.61 to operate correctly. Please download a new version from: http://www.mirc.com
echo -a $+ $colour(info) $+ *** Click one of the following popup menus to find its menu: Menubar, Status, Nicklist, & Channel
zmodem.autoid.load
}
on *:START: {
if ($version < 5.61) {
echo -a $+ $colour(info) $+ *** Zmodem's DALnet Auto-Identifier v1.50 expects the use of mIRC 5.61 to operate correctly. Please download a new version from: http://www.mirc.com